package com.example.studentcourse.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.studentcourse.entity.StudentCourse;
import com.example.studentcourse.mapper.StudentCourseMapper;
import com.example.studentcourse.service.IStudentCourseService;
import com.example.studentcourse.vo.StudentCourseQueryVO;
import com.example.studentcourse.vo.StudentCourseVO;
import org.springframework.stereotype.Service;

@Service
public class StudentCourseServiceImpl extends ServiceImpl<StudentCourseMapper, StudentCourse> implements IStudentCourseService {
    
    @Override
    public Page<StudentCourseVO> pageVO(StudentCourseQueryVO query) {
        return baseMapper.pageVO(new Page<>(query.getCurrent(), query.getSize()), query);
    }
} 